global class InstagramService {

    public InstagramService() {

    }


    public boolean getRequestAccessToken() {
        return (ApexPages.currentPage().getParameters().get('token') == null);
    }
    /*
    Webservice static String makeRequest() {
        //hardcode values for POC Instagram button leads
        string access_token = '38393631.475e682.5af40d794dc84248a16c0cbdc1947cf9';
        string client_id = '475e682169eb45bd8ee9f98519f3d693';
        //string client_secret = '2798492bd5fa4eae9cbb683224156a9a';
        string user_id = '38393631';


    //get username Endpoint
        string url = 'https://api.instagram.com/v1/users/'+user_id+'/?access_token='+access_token;
    // Instantiate a new http object
        Http h = new Http();

    // Instantiate a new HTTP request, specify the method (GET) as well as the endpoint
        HttpRequest req = new HttpRequest();
        req.setEndpoint(url);
        req.setMethod('GET');
    
    // Send the request, and return a response
        HttpResponse res = h.send(req);
        return res.getBody();
        //return url;
        //return 'success'; 
    }
    */
    

}